package com.liuli.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;


@Entity(name="UserInfo")
public class UserInfo {
	
	private Integer uid;  //用户id
	private String username;  //用户名称
	private String password;  //密码
	private String realname;  //真实姓名
	private String nickname;  //昵称
	private String portrait;  //照片
	private String position;  //职位
	private String telephone;  //电话
	private String intro;  // 描述
	private String email; //邮箱
	private String balance;//企业还是个人1 代表企业，0代表个人
	private Integer role;
	private Integer maxresumes;
	private Integer resumesnum;
	private Integer addtime;
	private String statu;
	private String code;
	
	public UserInfo() {
		// TODO Auto-generated constructor stub
	}
	
	public UserInfo(String username, String password, String realname,
			String nickname, String portrait, String position,
			String telephone, String intro, String email, String balance,
			Integer role, Integer maxresumes, Integer resumesnum,
			Integer addtime, String statu) {
		this.username = username;
		this.password = password;
		this.realname = realname;
		this.nickname = nickname;
		this.portrait = portrait;
		this.position = position;
		this.telephone = telephone;
		this.intro = intro;
		this.email = email;
		this.balance = balance;
		this.role = role;
		this.maxresumes = maxresumes;
		this.resumesnum = resumesnum;
		this.addtime = addtime;
		this.statu = statu;
	}

    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
	public Integer getUid() {
		return uid;
	}


	public void setUid(Integer uid) {
		this.uid = uid;
	}


	public String getUsername() {
		return username;
	}


	public void setUsername(String username) {
		this.username = username;
	}


	public String getPassword() {
		return password;
	}


	public void setPassword(String password) {
		this.password = password;
	}


	public String getRealname() {
		return realname;
	}


	public void setRealname(String realname) {
		this.realname = realname;
	}


	public String getNickname() {
		return nickname;
	}


	public void setNickname(String nickname) {
		this.nickname = nickname;
	}


	public String getPortrait() {
		return portrait;
	}


	public void setPortrait(String portrait) {
		this.portrait = portrait;
	}


	public String getPosition() {
		return position;
	}


	public void setPosition(String position) {
		this.position = position;
	}


	public String getTelephone() {
		return telephone;
	}


	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}


	public String getIntro() {
		return intro;
	}


	public void setIntro(String intro) {
		this.intro = intro;
	}


	public String getEmail() {
		return email;
	}


	public void setEmail(String email) {
		this.email = email;
	}


	public String getBalance() {
		return balance;
	}


	public void setBalance(String balance) {
		this.balance = balance;
	}


	public Integer getRole() {
		return role;
	}


	public void setRole(Integer role) {
		this.role = role;
	}


	public Integer getMaxresumes() {
		return maxresumes;
	}


	public void setMaxresumes(Integer maxresumes) {
		this.maxresumes = maxresumes;
	}


	public Integer getResumesnum() {
		return resumesnum;
	}


	public void setResumesnum(Integer resumesnum) {
		this.resumesnum = resumesnum;
	}


	public Integer getAddtime() {
		return addtime;
	}


	public void setAddtime(Integer addtime) {
		this.addtime = addtime;
	}


	public String getStatu() {
		return statu;
	}


	public void setStatu(String statu) {
		this.statu = statu;
	}


    @Transient
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Override
	public String toString() {
		return "UserInfo [uid=" + uid + ", username=" + username
				+ ", password=" + password + ", realname=" + realname
				+ ", nickname=" + nickname + ", portrait=" + portrait
				+ ", position=" + position + ", telephone=" + telephone
				+ ", intro=" + intro + ", email=" + email + ", balance="
				+ balance + ", role=" + role + ", maxresumes=" + maxresumes
				+ ", resumesnum=" + resumesnum + ", addtime=" + addtime
				+ ", statu=" + statu + "]";
	}
	
	
	 

}
